package com.panda.mall.common.mallOrder.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 退货原因表
* mall_order_reason
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_order_reason")
public class MallOrderReason extends BaseEntity implements Serializable {

    /**
    * 原因id
    */
    @NotNull(message="[原因id]不能为空")
    @ApiModelProperty("原因id")
    private Long id;
    /**
    * 原因
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("原因")
    @Length(max= 255,message="编码长度不能超过255")
    private String reason;
    /**
    * 优先级
    */
    @ApiModelProperty("优先级")
    private Integer sort;
}
